Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-day vector-sticky-header-enabled" lang="de" dir="ltr"><head>
<meta charset="UTF-8">
<title>PHPUnit</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://de.wikipedia.org/wiki/PHPUnit"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link href="./_mw_/ext.gadget.citeRef.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.defaultPlainlinks.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonHide.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonLayout.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonStyle.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiDarkmode.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiResponsive.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.specialSearch.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-PHPUnit rootpage-PHPUnit skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">PHPUnit</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="de" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr"><table class="float-right infobox toccolours toptextcells" style="border-spacing:5px; font-size:90%; text-align:left; width:21em;">

<tbody><tr>
<th colspan="2" class="hintergrundfarbe6" style="font-size:105%; text-align:center;">PHPUnit
<p class="mw-empty-elt">
</p>
</th></tr>
<tr>
<td colspan="2" style="text-align:center;"><span typeof="mw:File"></span>
</td></tr>
<tr>
<th colspan="2" class="hintergrundfarbe5" style="font-size:105%; text-align:center;">Basisdaten
<p class="mw-empty-elt">
</p>
</th></tr>
<tr>
<td><b><a href="Softwareentwickler" title="Softwareentwickler">Entwickler</a></b>
</td>
<td>Sebastian Bergmann
</td></tr>
<tr>
<td><b>Erscheinungsjahr</b>
</td>
<td><span class="wikidata-content">2004<sup id="cite_ref-_56393d456abfa679_1-0" class="reference"><a href="#cite_note-_56393d456abfa679-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></span>
</td></tr>
<tr>
<td><b>Aktuelle&nbsp;<a href="Version_(Software)" title="Version (Software)">Version</a></b>
</td>
<td><span class="wikidata-content">12.5.4<sup id="cite_ref-_1ee25e657c6fd5d6_2-0" class="reference"><a href="#cite_note-_1ee25e657c6fd5d6-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></span> <br> (<span class="wikidata-content">15. Dezember 2025</span>)
</td></tr>
<tr>
<td><b><a href="Betriebssystem" title="Betriebssystem">Betriebssystem</a></b>
</td>
<td><a href="Plattformunabh%C3%A4ngigkeit" title="Plattformunabhängigkeit">Plattformübergreifend</a>
</td></tr>
<tr>
<td><b><a href="Programmiersprache" title="Programmiersprache">Programmier­sprache</a></b>
</td>
<td><span class="wikidata-content"><a href="PHP" title="PHP">PHP</a><sup id="cite_ref-_443fba27edadccc7_3-0" class="reference"><a href="#cite_note-_443fba27edadccc7-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup></span>
</td></tr>
<tr>
<td><b>Kategorie</b>
</td>
<td><a href="Softwaretest" title="Softwaretest">Softwaretest</a>
</td></tr>
<tr>
<td><b>Lizenz</b>
</td>
<td><span class="wikidata-content"><a href="BSD-Lizenz" title="BSD-Lizenz">BSD-Lizenz</a></span>
</td></tr>
<tr>
<td class="hintergrundfarbe5" colspan="2" style="text-align:center;"><a rel="nofollow" class="external text" href="https://phpunit.de/">phpunit.de</a>
</td></tr></tbody></table>
<p><b>PHPUnit</b> ist ein in <a href="PHP" title="PHP">PHP</a> geschriebenes <a href="Freie_Software" title="Freie Software">freies</a> <a href="Framework" title="Framework">Framework</a> zum automatisierten <a href="Softwaretest" title="Softwaretest">Testen</a> von PHP-Software. Es ist vor allem für <a href="Modultest" title="Modultest">Modultests</a> geeignet und basiert auf dem <a href="XUnit" title="XUnit">xUnit</a>-Konzept.
</p>

<div class="mw-heading mw-heading2"><h2 id="Versionsgeschichte">Versionsgeschichte</h2></div>
<p>Am 15. März 2004 wurde Version 1.0.0 von Sebastian Bergmann unter der <a href="PHP_License" class="mw-redirect" title="PHP License">PHP-Lizenz</a> innerhalb der <a href="Programmbibliothek" title="Programmbibliothek">Programmbibliothek</a> <i><a href="PHP_Extension_and_Application_Repository" title="PHP Extension and Application Repository">PEAR</a></i> freigegeben. Ab Version 3.0.0 wurde PHPUnit von PEAR losgelöst und steht seither als eigenständiges Framework unter <a href="BSD-Lizenz" title="BSD-Lizenz">BSD-Lizenz</a> zur Verfügung.
</p>
<div class="mw-heading mw-heading2"><h2 id="Verwendung">Verwendung</h2></div>
<p>Folgende Projekte nutzen das PHPUnit-Framework (Auszug):
</p>
<ul><li><a href="CakePHP" title="CakePHP">CakePHP</a> ab Version 2</li>
<li><a href="Horde_(Framework)" title="Horde (Framework)">Horde 4</a></li>
<li><a href="Laravel" title="Laravel">Laravel</a></li>
<li><a href="Propel" title="Propel">Propel</a></li>
<li><a href="Serendipity_(Software)" title="Serendipity (Software)">Serendipity</a></li>
<li><a href="Symfony" title="Symfony">Symfony</a> ab Version 2</li>
<li><a href="WordPress" title="WordPress">WordPress</a><sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></li>
<li><a href="Zend_Technologies_Ltd." class="mw-redirect" title="Zend Technologies Ltd.">Zend Framework</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="GUI">GUI</h2></div>
<p><a href="Integrierte_Entwicklungsumgebung" title="Integrierte Entwicklungsumgebung">Integrierte Entwicklungsumgebungen</a> wie <a href="PhpStorm" title="PhpStorm">PhpStorm</a> oder <a href="Visual_Studio_Code" title="Visual Studio Code">Visual Studio Code</a> können PHPUnit-Testfälle ausführen und die Ergebnisse anzeigen. Zum Teil sind zusätzliche <a href="Plug-in" title="Plug-in">Plug-ins</a> erforderlich. Zusätzlich können Testfälle während der <a href="Kontinuierliche_Integration" title="Kontinuierliche Integration">kontinuierlichen Integration</a> ausgeführt werden z.&nbsp;B. mit <a href="Jenkins" class="mw-disambig" title="Jenkins">Jenkins</a> oder <a href="GitHub#GitHub_Actions" title="GitHub">GitHub Actions</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Siehe_auch">Siehe auch</h2></div>
<ul><li><a href="Liste_von_Modultest-Software" title="Liste von Modultest-Software">Liste von Modultest-Software</a></li>
<li><a href="Testgetriebene_Entwicklung" title="Testgetriebene Entwicklung">Testgetriebene Entwicklung</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Literatur">Literatur</h2></div>
<ul><li>Sebastian Bergmann (Hrsg.: O’Reillys Taschenbibliothek): <i>PHPUnit kurz und gut</i>. Oktober 2005, ISBN 978-3-89721-515-3.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Weblinks">Weblinks</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://phpunit.de/">Projektseite</a> (englisch)</li>
<li><a rel="nofollow" class="external text" href="https://github.com/sebastianbergmann/phpunit">Quellcode von PHPUnit auf GitHub</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Einzelnachweise">Einzelnachweise</h2></div>
<ol class="references">
<li id="cite_note-_56393d456abfa679-1"><span class="mw-cite-backlink"><a href="#cite_ref-_56393d456abfa679_1-0">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20160305175205/https://sebastian-bergmann.de/archives/300-PHPUnit-1.0.0-Released.html"><cite style="font-style:italic">web.archive.org</cite>.</a></span>
</li>
<li id="cite_note-_1ee25e657c6fd5d6-2"><span class="mw-cite-backlink"><a href="#cite_ref-_1ee25e657c6fd5d6_2-0">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.4"><cite style="font-style:italic"><span lang="en">Release 12.5.4</span></cite>.</a> 15.&nbsp;Dezember 2025 (abgerufen am 16.&nbsp;Dezember 2025).</span>
</li>
<li id="cite_note-_443fba27edadccc7-3"><span class="mw-cite-backlink"><a href="#cite_ref-_443fba27edadccc7_3-0">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://github.com/sebastianbergmann/phpunit/"><cite style="font-style:italic">github.com</cite>.</a> In: <cite style="font-style:italic">GitHub</cite>. (abgerufen am 21.&nbsp;November 2024).</span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/">PHPUnit is the official testing framework chosen by the core team to test our PHP code.</a></span>
</li>
</ol></div><!--htdig_noindex--><div><div class="zim-footer">
Dieser Artikel wurde von <a class="external text" title="Zuletzt bearbeitet am 2025-09-02" href="https://de.wikipedia.org/wiki/?title=PHPUnit&amp;oldid=259387402">Wikipedia</a> herausgegeben. Der Text ist unter <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.de">Creative Commons Attribution-Share Alike 4.0</a> verfügbar, sofern nicht anders angegeben. Für die Mediendateien können zusätzliche Bedingungen gelten.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>

</body></html>